import QtQuick
import QtQuick.Controls
Item {
    property bool isVisible: false
    width:200
    height:350
    z:-1
    visible: isVisible
    Component{
        id:compOfKUser
        KUser{


        }

    }

    // y:-20
    Pane{
        Material.accent: Material.Blue
        Material.elevation: 6
        anchors.fill: parent
        // color: color_MaterialBlue
        Material.roundedScale: Material.LargeScale
        Column{
            anchors.fill: parent
            Rectangle{
                width: parent.width
                height: 60

            }
            Rectangle{
                width: parent.width
                height: width
                Rectangle{
                    width: parent.width-20
                    height: width
                    radius: width
                    color: "grey"
                }

            }
            Rectangle{
                width: parent.width
                height: 2
                color: "grey"

            }
            Column{
                height: parent.height-60-parent.width-2
                width: parent.width*0.9
                spacing:3
                anchors.horizontalCenter: parent.horizontalCenter
                Button{
                    height: parent.height/2
                    width: parent.width
                    Material.accent: Material.Blue
                    Material.roundedScale: Material.SmallScale
                    highlighted: true
                    text:"退出"
                }
                Button{
                    height: parent.height/2
                    width: parent.width
                    Material.accent: Material.Blue
                    Material.roundedScale: Material.SmallScale
                    highlighted: true
                    text:"详细信息"
                    onClicked: {
                        var properies={
                            isLogined:false
                        }
                        var user=compOfKUser.createObject(parent,properies)
                        main_ktabbarview.appendPage(user)

                    }
                }
            }




        }






    }




}
